package com.example.demo.mapper;

import com.example.demo.po.Student;
import com.example.demo.po.StudentCourse;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseStudentMap {
     int DeleteCourse(int id);
     List<StudentCourse> GetCourses(int id);

     List<StudentCourse> GetCourseByAll(int id,String courseName,String teacherName);

     List<StudentCourse> GetCourseByName(int id,String courseName);

     List<StudentCourse> GetCourseByTeacherName(int id,String teacherName);

     List<Student> GetStudent(int courseid);

    void  DeleteMyCourse(int courseid,int stuid);
}
